<style>
    * {
        margin: 0;
        padding: 0;
    }
    h2,h3,h4{
        font-weight: normal;
        margin: 0;
    }
    li {
        list-style: none;
    }
    .content-box{
        margin:5px 20px;
        background: #f8f8f8;
        overflow: hidden;
    }
    .right-content{
        padding:20px 0px 70px 37%;
        border-left:4px solid #fff;;
    }
    h2{
        text-align: right;
        font-size:16px;
        padding-right:20px;
        line-height:36px;
    }
    h3{
        font-size:14px;

    }
    .main-right-list li,.second-content-list li,.product-belong-list li{
        padding:10px 0;
    }


    .classify-table tr td{
        border:1px solid #cbcbcb;
        padding:5px 0;
    }
    .classify-table tr td input[type=text]{
        width:80px;
        border-radius:2px;
        border:1px solid #cbcbcb;
    }
    .classify-table tr td input[type=button]{
        padding:1px 5px;
        color:#286e9f;
        background:#fff;
        border:1px solid #cbcbcb;
        margin-left:10px;
        border-radius:3px;
    }
    .main-right-list li span{
        display: inline-block;
        width: 100px;
    }
    .main-right-list li input[type=text]{
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border:1px solid #cccccc;
        width: 30%;
        height: 34px;
        padding-left: 12px;
    }
    .main-right-list li select{
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border:1px solid #cccccc;
        width: 24%;
        height: 34px;
        padding-left: 12px;
    }

</style>
<section class="content-header">
    <h1 style="display:inline-block;">课程管理</h1>&nbsp&nbsp<h4 style="display:inline-block;color: #707070">修改课程</h4>
</section>
<section class="content">
    <div class="AC_content">
        <div class="main-infor content-box">
            <div class="content" style="">
                <ul class="main-right-list">
                    <li><span>专业名称：</span>
                        <select class="zy" name="select" id="major_name">
                            <%for(var i=0;i<acts.length;i++){%>
                            <option <%if(data.major_id==acts[i].major_id){%>selected="selected"<%}%> data-id="<%=acts[i].major_id%>"><%=acts[i].major_name%></option>
                            <%}%>
                        </select>
                    </li>
                    <li><span>课程名称：</span><input type="text" value="<%=data.course_name%>" class="" id="course_name"></li>
                    <li><span>课程编号：</span><input type="text" value="<%=data.sequence%>" class="" id="sequence"></li>
                    <!--<li><span>老师姓名：</span><input type="text" value="<%=data.teacher_name%>" class="" id="teacher_name"></li>-->
                    <li><span>课程图片：</span>
                        <div id="picList">
                            <img src="<%=data.cover%>" style="margin-left: 100px;width: 100px;height: 100px;" onclick="addImg()" id="upimgs" alt="">
                        </div>
                        <input style='display: none;' type="file" name="files[]" id='fileupload'>
                    </li>
                    <li><span>课程详情：</span></li>
                    <form>
                        <textarea name="content" id="content" style="width:800px;height:400px;" ><%=data.course_desc%></textarea>
                    </form>
                </ul>
            </div>
        </div>
        <input type="hidden" name="course_id" id="course_id" value="<%=data.course_id%>"/>
        <input type="button" value="保&nbsp;&nbsp;存" class="publish btn btn-lg btn-primary" style="margin:50px 50% 0;">
    </div>
</section>
<script charset="utf-8" src="/plugins/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/plugins/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
            uploadJson : '../../upload',
            allowFileManager : true
        });
    });
</script>
<script>
    function addImg(){
        $('#fileupload').click();
    }
</script>

